package com.atguigu.mall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.mall.product.entity.SpuInfoEntity;
import com.atguigu.mall.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * spu信息
 *
 * @author Mr·L
 * @email 907298149@qq.com
 * @date 2021-12-02 20:39:46
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存新增商品
     * @param spuInfo
     */
    void saveSpuSaveVo(SpuSaveVo spuInfo);

    /**
     * 保存Spu基本信息
     * @param spuInfoEntity
     */
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    void upSpu(Long spuId);

    void  updateStatus(Long spuId,Integer code);
}

